#include "common/pch.h"
#include "metadata/pool_template.h"

#include <cftf/loger/syslog.h>
#include <cftc/reflect/class.h>
#include <cftc/reflect/field.h>

namespace mt
{

	CFT_IMPLEMENT_REFLECT_CLASS_BEGIN(PoolTemplate, cftc::reflect::Object);
		CFT_IMPLEMENT_REFLECT_FIELD_ANNOTATION(entry, R"(wow_meta:"field_name:entry")");
		CFT_IMPLEMENT_REFLECT_FIELD_ANNOTATION(max_limit, R"(wow_meta:"field_name:max_limit")");
		CFT_IMPLEMENT_REFLECT_FIELD_ANNOTATION(description, R"(wow_meta:"field_name:description")");
	CFT_IMPLEMENT_REFLECT_CLASS_END();


	void PoolTemplate::MetaInstanceInit1()
	{
		max_pool_id_ = std::max(max_pool_id_, entry);
	}

}